package sql;

import java.io.File;
import java.io.FileOutputStream;
import java.util.LinkedList;

public class WritePicSound {
	public void WriteFile(LinkedList<byte[]> bList, String name) {
		FileOutputStream fos = null;
		try {
			(new File("E:/Download/myAngel")).mkdirs();// 如果文件夹不存在 则建立新文件夹
			fos = new FileOutputStream("E:/Download/myAngel/"+name);
			for (byte[] bb : bList) {
				fos.write(bb);
			}
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			try {
				fos.close();
			} catch (Exception e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
	}
}
